.class public Lcom/jecelyin/editor/v2/widget/text/EditAreaView;
.super Landroid/webkit/WebView;
.source "EditAreaView.java"

# interfaces
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/editor/v2/widget/text/EditAreaView$g;,
        Lcom/jecelyin/editor/v2/widget/text/EditAreaView$h;,
        Lcom/jecelyin/editor/v2/widget/text/EditAreaView$i;
    }
.end annotation


# instance fields
.field private final a:Lcom/jecelyin/editor/v2/d;

.field private b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/jecelyin/editor/v2/widget/text/a;",
            ">;"
        }
    .end annotation
.end field

.field private c:Z

.field private d:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/Long;",
            "Landroid/webkit/ValueCallback<",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private e:Landroid/view/ActionMode$Callback;

.field private f:Landroid/view/ActionMode;

.field private g:Lcom/jecelyin/editor/v2/widget/text/d;

.field private h:Ljava/lang/String;

.field private i:Z

.field private j:Z

.field private k:Lcom/jecelyin/editor/v2/widget/text/b;

.field private l:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 9

    .line 1
    invoke-direct {p0, p1, p2}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 2
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    iput-object p2, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->b:Ljava/util/ArrayList;

    .line 3
    new-instance p2, Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v0, 0x0

    invoke-direct {p2, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V

    const-string p2, "Text"

    .line 4
    iput-object p2, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h:Ljava/lang/String;

    .line 5
    sget-boolean p2, Lcom/jecelyin/common/utils/c;->a:Z

    const/4 v0, 0x1

    if-eqz p2, :cond_0

    .line 6
    sget p2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x13

    if-lt p2, v1, :cond_0

    .line 7
    invoke-static {v0}, Landroid/webkit/WebView;->setWebContentsDebuggingEnabled(Z)V

    :cond_0
    const/4 p2, 0x0

    .line 8
    invoke-virtual {p0, p2}, Landroid/webkit/WebView;->setLongClickable(Z)V

    .line 9
    new-instance v1, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$a;

    invoke-direct {v1, p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$a;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)V

    invoke-virtual {p0, v1}, Landroid/webkit/WebView;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 10
    invoke-virtual {p0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    .line 11
    sget-object v2, Landroid/webkit/WebSettings$ZoomDensity;->FAR:Landroid/webkit/WebSettings$ZoomDensity;

    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setDefaultZoom(Landroid/webkit/WebSettings$ZoomDensity;)V

    .line 12
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setAllowContentAccess(Z)V

    .line 13
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    .line 14
    invoke-virtual {v1, p2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    const-string v2, "utf-8"

    .line 15
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v1, p2}, Landroid/webkit/WebSettings;->setDisplayZoomControls(Z)V

    .line 17
    invoke-virtual {v1, p2}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    .line 18
    invoke-virtual {v1, p2}, Landroid/webkit/WebSettings;->setLoadWithOverviewMode(Z)V

    .line 19
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 20
    invoke-virtual {v1, p2}, Landroid/webkit/WebSettings;->setAppCacheEnabled(Z)V

    .line 21
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    const-wide/32 v3, 0x5000000

    .line 22
    invoke-virtual {v1, v3, v4}, Landroid/webkit/WebSettings;->setAppCacheMaxSize(J)V

    .line 23
    invoke-virtual {p1}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object p1

    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/webkit/WebSettings;->setAppCachePath(Ljava/lang/String;)V

    const/4 p1, -0x1

    .line 24
    invoke-virtual {v1, p1}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 25
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$i;

    const/4 v0, 0x0

    invoke-direct {p1, p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$i;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Lcom/jecelyin/editor/v2/widget/text/EditAreaView$a;)V

    const-string v1, "AndroidEditor"

    invoke-virtual {p0, p1, v1}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 26
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$h;

    invoke-direct {p1, p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$h;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Lcom/jecelyin/editor/v2/widget/text/EditAreaView$a;)V

    invoke-virtual {p0, p1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 27
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$g;

    invoke-direct {p1, p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$g;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Lcom/jecelyin/editor/v2/widget/text/EditAreaView$a;)V

    invoke-virtual {p0, p1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 28
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p1

    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    .line 29
    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->l()Lcom/jecelyin/editor/v2/q$a;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 30
    iget-boolean p1, p1, Lcom/jecelyin/editor/v2/q$a;->c:Z

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    .line 31
    :goto_0
    :try_start_0
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v1

    const-string v3, "editor.html"

    invoke-virtual {v1, v3}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v1

    .line 32
    invoke-static {v1, v2}, Lcom/jecelyin/common/utils/b;->a(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 33
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez p1, :cond_2

    const-string p1, "<\\!\\-\\-\\{DARK\\-START\\}\\-\\->[\\w\\W]+?<\\!\\-\\-\\{DARK\\-END\\}\\-\\->"

    const-string v1, ""

    .line 34
    invoke-virtual {v2, p1, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :cond_2
    move-object v5, v2

    const-string v4, "file:///android_asset/"

    const-string v6, "text/html"

    const-string v7, "utf-8"

    const-string v8, "file:///android_asset/"

    move-object v3, p0

    .line 35
    invoke-virtual/range {v3 .. v8}, Landroid/webkit/WebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 36
    invoke-virtual {p0, p2}, Landroid/webkit/WebView;->setBackgroundColor(I)V

    .line 37
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1, p0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    const-string p1, "pref_font_size"

    .line 38
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_cursor_width"

    .line 39
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_show_linenumber"

    .line 40
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_word_wrap"

    .line 41
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_show_whitespace"

    .line 42
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_tab_size"

    .line 43
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_auto_indent"

    .line 44
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_auto_capitalize"

    .line 45
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_insert_space_for_tab"

    .line 46
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_current_theme"

    .line 47
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    const-string p1, "pref_touch_to_adjust_text_size"

    .line 48
    invoke-virtual {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V

    .line 49
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->t()Z

    move-result p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Z)V

    .line 50
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setReadOnly(Z)V

    return-void

    :catch_0
    move-exception p1

    .line 51
    invoke-static {p1}, Lcom/jecelyin/common/utils/c;->b(Ljava/lang/Throwable;)I

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Landroid/view/ActionMode;)Landroid/view/ActionMode;
    .locals 0

    .line 6
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->f:Landroid/view/ActionMode;

    return-object p1
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Landroid/content/ClipData;)V
    .locals 0

    .line 5
    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->setPrimaryClip(Landroid/content/ClipData;)V

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Ljava/lang/String;Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/String;Lcom/jecelyin/editor/v2/widget/text/c;)V

    return-void
.end method

.method private a(Ljava/lang/String;Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0x13
    .end annotation

    .line 19
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "handleJava(0,"

    .line 20
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ");"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 21
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1, p2}, Landroid/webkit/WebView;->evaluateJavascript(Ljava/lang/String;Landroid/webkit/ValueCallback;)V

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->c:Z

    return p1
.end method

.method static synthetic b(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Lcom/jecelyin/editor/v2/widget/text/b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->k:Lcom/jecelyin/editor/v2/widget/text/b;

    return-object p0
.end method

.method static synthetic b(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->l:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->i:Z

    return p1
.end method

.method static synthetic c(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Ljava/util/ArrayList;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->b:Ljava/util/ArrayList;

    return-object p0
.end method

.method static synthetic c(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->j:Z

    return p1
.end method

.method static synthetic d(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Ljava/util/HashMap;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d:Ljava/util/HashMap;

    return-object p0
.end method

.method static synthetic e(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Landroid/view/ActionMode$Callback;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e:Landroid/view/ActionMode$Callback;

    return-object p0
.end method

.method static synthetic f(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Landroid/view/ActionMode;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->f:Landroid/view/ActionMode;

    return-object p0
.end method

.method static synthetic g(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)Lcom/jecelyin/editor/v2/widget/text/d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->g:Lcom/jecelyin/editor/v2/widget/text/d;

    return-object p0
.end method

.method private setPrimaryClip(Landroid/content/ClipData;)V
    .locals 2

    .line 1
    :try_start_0
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "clipboard"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/ClipboardManager;

    .line 3
    invoke-virtual {v0, p1}, Landroid/content/ClipboardManager;->setPrimaryClip(Landroid/content/ClipData;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 4
    :catch_0
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Lcom/jecelyin/editor/v2/m;->operation_failed:I

    const/4 v1, 0x0

    invoke-static {p1, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 26
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "backLocation"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(I)V
    .locals 1

    const/4 v0, 0x0

    .line 24
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(II)V

    return-void
.end method

.method public a(II)V
    .locals 2

    .line 25
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "gotoLine"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string v1, "line"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string p2, "column"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(IILcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 57
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "getLineText"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    .line 58
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string v1, "line"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 59
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    const-string p2, "limitLength"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 60
    invoke-virtual {v0, p3}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    .line 61
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/widget/text/a;)V
    .locals 3

    .line 7
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->c:Z

    if-nez v0, :cond_0

    .line 8
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void

    .line 9
    :cond_0
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/Looper;->getThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    if-eq v0, v1, :cond_1

    .line 10
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$b;

    invoke-direct {v0, p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$b;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Lcom/jecelyin/editor/v2/widget/text/a;)V

    invoke-virtual {p0, v0}, Landroid/webkit/WebView;->post(Ljava/lang/Runnable;)Z

    return-void

    .line 11
    :cond_1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 12
    iget-object v1, p1, Lcom/jecelyin/editor/v2/widget/text/a;->a:Ljava/lang/String;

    const-string v2, "cmd"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 13
    iget-object v1, p1, Lcom/jecelyin/editor/v2/widget/text/a;->b:Ljava/util/HashMap;

    const-string v2, "data"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 14
    iget-object v1, p1, Lcom/jecelyin/editor/v2/widget/text/a;->a:Ljava/lang/String;

    const-string v2, "setText"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 15
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$c;

    invoke-direct {v2, p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$c;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Ljava/util/HashMap;Lcom/jecelyin/editor/v2/widget/text/a;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 16
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    goto :goto_0

    .line 17
    :cond_2
    invoke-static {v0}, Lcom/alibaba/fastjson/JSON;->toJSONString(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 18
    iget-object p1, p1, Lcom/jecelyin/editor/v2/widget/text/a;->c:Lcom/jecelyin/editor/v2/widget/text/c;

    invoke-direct {p0, v0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/String;Lcom/jecelyin/editor/v2/widget/text/c;)V

    :goto_0
    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/Boolean;",
            ">;)V"
        }
    .end annotation

    .line 22
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "canRedo"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/widget/text/d;)V
    .locals 0

    .line 32
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->g:Lcom/jecelyin/editor/v2/widget/text/d;

    return-void
.end method

.method public a(Ljava/lang/CharSequence;Z)V
    .locals 2

    .line 27
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "insertOrReplaceText"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    .line 28
    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v1, "text"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 29
    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string p2, "requireSelected"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 30
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    .line 31
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 2

    .line 23
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "convertWrapCharTo"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    const-string v1, "value"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Ljava/lang/String;IILjava/lang/CharSequence;Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 3

    if-nez p4, :cond_0

    return-void

    .line 40
    :cond_0
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "setText"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    .line 41
    invoke-interface {p4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "text"

    invoke-virtual {v0, v2, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 42
    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    const-string v1, "line"

    invoke-virtual {v0, v1, p2}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 43
    invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    const-string p3, "column"

    invoke-virtual {v0, p3, p2}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string p2, "file"

    .line 44
    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 45
    invoke-virtual {v0, p5}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 46
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p2

    .line 47
    invoke-virtual {p0, p2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    .line 48
    invoke-interface {p4}, Ljava/lang/CharSequence;->length()I

    move-result p2

    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/d;->e()I

    move-result p3

    const/4 p4, 0x0

    if-gt p2, p3, :cond_4

    iget-object p2, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p2}, Lcom/jecelyin/editor/v2/d;->t()Z

    move-result p2

    if-nez p2, :cond_1

    goto :goto_0

    .line 49
    :cond_1
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->c()Z

    move-result p2

    if-nez p2, :cond_5

    if-nez p1, :cond_2

    return-void

    .line 50
    :cond_2
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->getModeName()Ljava/lang/String;

    move-result-object p2

    const-string p3, "Text"

    .line 51
    invoke-virtual {p3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_3

    const-string p2, "."

    .line 52
    invoke-virtual {p1, p2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result p2

    add-int/lit8 p2, p2, 0x1

    invoke-virtual {p1, p2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p2

    .line 53
    :cond_3
    invoke-static {p2}, Lcom/jecelyin/editor/v2/c;->a(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 54
    invoke-virtual {p0, p4}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Z)V

    .line 55
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$f;

    invoke-direct {p1, p0, p2}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$f;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Landroid/webkit/WebView;->post(Ljava/lang/Runnable;)Z

    goto :goto_1

    .line 56
    :cond_4
    :goto_0
    invoke-virtual {p0, p4}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Z)V

    :cond_5
    :goto_1
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/CharSequence;Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 6

    const/4 v2, 0x0

    const/4 v3, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v4, p2

    move-object v5, p3

    .line 39
    invoke-virtual/range {v0 .. v5}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Ljava/lang/String;IILjava/lang/CharSequence;Lcom/jecelyin/editor/v2/widget/text/c;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)V"
        }
    .end annotation

    .line 33
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "setSearchResult"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    const-string v1, "text"

    .line 34
    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string p1, "find"

    .line 35
    invoke-virtual {v0, p1, p2}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string p1, "data"

    .line 36
    invoke-virtual {v0, p1, p3}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 37
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    .line 38
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;ZZZ)V
    .locals 2

    .line 63
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "doFind"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    const-string v1, "findText"

    .line 64
    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string p1, "replaceText"

    .line 65
    invoke-virtual {v0, p1, p2}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 66
    invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string p2, "caseSensitive"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 67
    invoke-static {p4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string p2, "wholeWordOnly"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 68
    invoke-static {p5}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string p2, "regex"

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    .line 69
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    .line 70
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public a(Z)V
    .locals 2

    .line 62
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "enableHighlight"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string v1, "value"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public b()V
    .locals 2

    .line 5
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "clearSelection"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public b(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/Boolean;",
            ">;)V"
        }
    .end annotation

    .line 4
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "canUndo"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public c(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "[",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 4
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "getCurrentPosition"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    .line 6
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public c()Z
    .locals 1

    .line 3
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$d;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$d;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)V

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d(Lcom/jecelyin/editor/v2/widget/text/c;)V

    const/4 v0, 0x1

    return v0
.end method

.method public d(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 3
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->getSelectedText()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/c;->a(Ljava/lang/Object;)V

    return-void
.end method

.method public d()Z
    .locals 1

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$e;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView$e;-><init>(Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)V

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->d(Lcom/jecelyin/editor/v2/widget/text/c;)V

    const/4 v0, 0x1

    return v0
.end method

.method public e()V
    .locals 2

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "duplication"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public e(Lcom/jecelyin/editor/v2/widget/text/c;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/jecelyin/editor/v2/widget/text/c<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 3
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "getText"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Lcom/jecelyin/editor/v2/widget/text/c;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public f()V
    .locals 2

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "forwardLocation"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public g()V
    .locals 2

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "gotoEnd"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public getModeName()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h:Ljava/lang/String;

    return-object v0
.end method

.method public getSelectedText()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->l:Ljava/lang/String;

    return-object v0
.end method

.method public h()V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "gotoTop"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public i()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->i:Z

    return v0
.end method

.method public j()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 2
    invoke-virtual {p0}, Landroid/webkit/WebView;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    return-void
.end method

.method public k()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->j:Z

    return v0
.end method

.method public l()Z
    .locals 4

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "clipboard"

    .line 2
    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/content/ClipboardManager;

    if-nez v1, :cond_0

    return v0

    .line 3
    :cond_0
    invoke-virtual {v1}, Landroid/content/ClipboardManager;->getPrimaryClip()Landroid/content/ClipData;

    move-result-object v1

    if-nez v1, :cond_1

    return v0

    .line 4
    :cond_1
    invoke-virtual {v1}, Landroid/content/ClipData;->getItemCount()I

    move-result v2

    if-nez v2, :cond_2

    return v0

    .line 5
    :cond_2
    invoke-virtual {v1, v0}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item;

    move-result-object v1

    .line 6
    invoke-virtual {v1}, Landroid/content/ClipData$Item;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    if-nez v1, :cond_3

    return v0

    .line 7
    :cond_3
    new-instance v2, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v3, "onPaste"

    invoke-direct {v2, v3}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    const-string v3, "text"

    invoke-interface {v1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    return v0

    .line 8
    :catch_0
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/jecelyin/editor/v2/m;->operation_failed:I

    invoke-static {v1, v2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    return v0
.end method

.method public m()V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "redo"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public n()V
    .locals 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->j:Z

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "resetTextChange"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public o()Z
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "selectAll"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    const/4 v0, 0x1

    return v0
.end method

.method public onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroid/webkit/WebView;->onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 2
    :cond_0
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/b;

    invoke-direct {v0, p1, p0}, Lcom/jecelyin/editor/v2/widget/text/b;-><init>(Landroid/view/inputmethod/InputConnection;Lcom/jecelyin/editor/v2/widget/text/EditAreaView;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->k:Lcom/jecelyin/editor/v2/widget/text/b;

    return-object v0
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 2

    .line 1
    invoke-virtual {p2}, Ljava/lang/String;->hashCode()I

    move-result p1

    sparse-switch p1, :sswitch_data_0

    goto/16 :goto_0

    :sswitch_0
    const-string p1, "pref_insert_space_for_tab"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x7

    goto/16 :goto_1

    :sswitch_1
    const-string p1, "pref_cursor_width"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_1

    :sswitch_2
    const-string p1, "pref_auto_indent"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x6

    goto :goto_1

    :sswitch_3
    const-string p1, "pref_word_wrap"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x3

    goto :goto_1

    :sswitch_4
    const-string p1, "pref_touch_to_adjust_text_size"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/16 p1, 0x9

    goto :goto_1

    :sswitch_5
    const-string p1, "pref_current_theme"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/16 p1, 0xa

    goto :goto_1

    :sswitch_6
    const-string p1, "pref_auto_capitalize"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/16 p1, 0x8

    goto :goto_1

    :sswitch_7
    const-string p1, "pref_show_linenumber"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x2

    goto :goto_1

    :sswitch_8
    const-string p1, "pref_show_whitespace"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x4

    goto :goto_1

    :sswitch_9
    const-string p1, "pref_font_size"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_1

    :sswitch_a
    const-string p1, "pref_tab_size"

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x5

    goto :goto_1

    :cond_0
    :goto_0
    const/4 p1, -0x1

    :goto_1
    const-string p2, "value"

    packed-switch p1, :pswitch_data_0

    goto/16 :goto_2

    .line 2
    :pswitch_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->l()Lcom/jecelyin/editor/v2/q$a;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 3
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "setTheme"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object p1, p1, Lcom/jecelyin/editor/v2/q$a;->b:Ljava/lang/String;

    invoke-virtual {v0, p2, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 4
    :pswitch_1
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setZoomable"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->A()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 5
    :pswitch_2
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setAutoCapitalize"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->n()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 6
    :pswitch_3
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setSpaceAsTab"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->u()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 7
    :pswitch_4
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setAutoIndent"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->o()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 8
    :pswitch_5
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setTabSize"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->j()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto/16 :goto_2

    .line 9
    :pswitch_6
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setShowInvisible"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->z()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto :goto_2

    .line 10
    :pswitch_7
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setWordWrap"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->B()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto :goto_2

    .line 11
    :pswitch_8
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setShowLineNumber"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->y()Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto :goto_2

    .line 12
    :pswitch_9
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setCursorWidth"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->c()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    goto :goto_2

    .line 13
    :pswitch_a
    new-instance p1, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v0, "setFontSize"

    invoke-direct {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->d()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    :cond_1
    :goto_2
    return-void

    nop

    :sswitch_data_0
    .sparse-switch
        -0x56be6af9 -> :sswitch_a
        -0x50f18d2b -> :sswitch_9
        -0x3d86ad1d -> :sswitch_8
        -0x2b0b3f5d -> :sswitch_7
        -0x256dcaa0 -> :sswitch_6
        0x22ea5267 -> :sswitch_5
        0x30b5284b -> :sswitch_4
        0x3fe72543 -> :sswitch_3
        0x57df0120 -> :sswitch_2
        0x5d82e439 -> :sswitch_1
        0x5f0e3a7c -> :sswitch_0
    .end sparse-switch

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_a
        :pswitch_9
        :pswitch_8
        :pswitch_7
        :pswitch_6
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public p()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    const/4 v1, 0x2

    .line 2
    invoke-virtual {v0, p0, v1}, Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z

    return-void
.end method

.method public q()V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "undo"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public setCustomSelectionActionModeCallback(Landroid/view/ActionMode$Callback;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->e:Landroid/view/ActionMode$Callback;

    return-void
.end method

.method public setMode(Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "setMode"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    const-string v1, "mode"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method

.method public setModeName(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->h:Ljava/lang/String;

    return-void
.end method

.method public setReadOnly(Z)V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/text/a$b;

    const-string v1, "readOnly"

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/a$b;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    const-string v1, "value"

    invoke-virtual {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a(Ljava/lang/String;Ljava/lang/Object;)Lcom/jecelyin/editor/v2/widget/text/a$b;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/widget/text/a$b;->a()Lcom/jecelyin/editor/v2/widget/text/a;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/a;)V

    return-void
.end method
